package removeTrailingZeros;

public class Solution {
    public String removeTrailingZeros(String num) {
        //
        for (int i = num.length(); i >=0 ; i--) {
            if(num.charAt(i)!='0') {
                return num.substring(0,i+1);
            }
        }
        return "0";
    }
}
